<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">分类</label>
            <div class="layui-input-block">
                <select name="class_id" lay-verify="required" lay-filter="qwe" class="layui-input">
                    <option value="">--请选择--</option>
                    {volist name="classification" id="v"}
                    <option value="{$v.id}" {if condition="$row.class_id eq $v.id"}selected{/if}>{$v.title}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">试玩APP名称</label>
            <div class="layui-input-block">
                <input type="text" name="demo_name" class="layui-input" lay-verify="required" placeholder="请输入试玩APP名称" value="{$row.demo_name|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">试玩APP图标</label>
            <div class="layui-input-block layuimini-upload">
                <input name="demo_img" class="layui-input layui-col-xs6" readonly  placeholder="请上传试玩APP图标" value="{$row.demo_img|default=''}">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="demo_img" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="demo_img"><i class="fa fa-upload"></i> 上传</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">试玩单价</label>
            <div class="layui-input-block">
                <input type="number" name="price"  class="layui-input" placeholder="请输入试玩单价" value="{$row.price|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">跳转链接</label>
            <div class="layui-input-block">
                <input type="text" name="jump_url"  class="layui-input" placeholder="请输入跳转链接" value="{$row.jump_url|default=''}">
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>
    </form>
</div>
<script type="text/javascript">
    layui.use(['form','upload'], function(){
        var form = layui.form;
        var upload = layui.upload;
      
    });
</script>